import { ElMessage } from 'element-plus'

const customAlert = (s, t) => {
  switch (t) {
    case 'success':
      ElMessage.success(s)
      break
    case 'info':
      ElMessage.info(s)
      break
    case 'warning':
      ElMessage.warning(s)
      break
    case 'error':
      ElMessage.error(s)
      break
    default:
      ElMessage.info(s)
      break
  }
}
export default customAlert 